<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the wordpress construct of pages
 * and that other 'pages' on your wordpress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage MIP
 * @since MIP 1
 */

get_header(); ?>

	<?php if(!is_front_page()){ ?>
	<div id="header_inner">
		<div id="headertext">
			 <?php  include_once (TEMPLATEPATH . '/title.php'); ?>
		</div>
	</div>
	<?php } ?>	
 
	<!-- BEGIN CONTENT -->
	<div id="container_content">
	<div id="padding_content">
		<div id="maincontent">
			<?php if ( function_exists('yoast_breadcrumb') && !is_front_page() ) {
			yoast_breadcrumb('<div id="breadcrumbs">','</div>');
			} ?>

			<?php 
			if ( is_active_sidebar('before-content') ) {
			get_sidebar('before-content');
			}
			?>
			<div id="main">
				<div id="content">

				<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
				
				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<?php /* if(is_front_page()){ ?>
						<h2><?php the_title(); ?></h2>
					<?php } */ ?>	
					<div class="entry-content">
						<?php the_content(); ?>
						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:' ), 'after' => '</div>' ) ); ?>
						<?php edit_post_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
					</div><!-- .entry-content -->
				</div><!-- #post-## -->
			
				<?php comments_template( '', true ); ?>
			
				<?php endwhile; ?>
				</div><!-- end of content -->
			</div><!-- end of main -->
			<div id="side">
				<?php get_sidebar('page'); ?>
				<div class="box"><?php get_sidebar('page2'); ?></div>
			</div><!-- end of side -->
		</div><!-- end of maincontent -->
	</div>
	<div class="clr"></div>
	</div>
	<!-- END OF CONTENT -->
	
	</div><!-- end of centercolumn -->
</div><!-- end of main container -->
				
				
<?php get_footer(); ?>
